package cn.kk.model.auth.req;

import io.swagger.v3.oas.annotations.media.Schema;
import jakarta.validation.constraints.NotBlank;
import jakarta.validation.constraints.NotNull;
import lombok.Data;


/**
 * 登录请求
 * @author liujunkai
 * @date 2023/8/3 17:11
 */
@Data
public class LoginReq {

    @NotNull(message = "请输入账号")
    @Schema(defaultValue = "用户名/邮箱/手机号")
    private String account;

    @NotBlank(message = "请输入密码")
    @Schema(defaultValue = "密码")
    private String password;

    @NotBlank(message = "请输入验证码")
    @Schema(defaultValue = "验证码")
    private String captchaAnswer;

    @NotBlank(message = "请输入验证码")
    @Schema(defaultValue = "验证码请求id")
    private String requestId;

}